<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es">
<head>
<title>LOST - Mapper</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript" src="./js/ajax.js"></script>
    <script type="text/javascript" src="./js/mapeitor.js?v=1"></script>
</head>
<body onload="initmapeitor()">
<div id='debug' style='display:none;border: 1px solid green; font-size: xx-small; width: 300px; height: 300px'></div>
	    Seleccione Tribu:<br/>
        Search: <input type="text" id="q">
                <input type="button" value="Go!"      onclick="getAllySelect(document.getElementById('q').value)"  >
                <input type="button" value="Show all" onclick="getAllySelect('')"  >
        <br>
		<select name="ally" id="ally">
	    	<?php foreach($allys as $ally) { ?>
				<option value="<?php echo $ally->id; ?>"><?php echo $ally->name ?></option>
			<? } ?>
	    </select>
		<input type="button" name="submit" id="submit" value="Añadir" onclick="addTribal(document.getElementById('ally').value)">
        <input type="button" name="submit" id="submit" value="Añadir LOST" onclick="addTribal(10228)">
        
		<br/>
		<br/>
		
        <div id="triballist"></div>
        <input type="button" name="size800x600" onclick="mapsize(1);"   value="x1">
        <input type="button" name="size800x600" onclick="mapsize(1.5);"   value="x2">
        <input type="button" name="size800x600" onclick="mapsize(2);"   value="x3">
        <input type="button" name="size800x600" onclick="mapsize(5);"   value="x5">
        <input type="button" name="size800x600" onclick="mapsize(10);"   value="x10">
	<br/>
    <div id='map'></div>
</body>
</html>